package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.DictionaryMapper;
import com.richest.api.service.IDictionaryService;
import com.richest.bean.DictionaryBean;

/**
 * 字典业务服务实现
 * 
 * @author 杨博
 * @version richest-api 2.0
 */
@Service
public class DictionaryServiceImpl implements IDictionaryService {

	@Autowired
	private DictionaryMapper mapper;

	@Override
	public Integer dictionaryAdd(DictionaryBean bean) {
		return mapper.dictionaryAdd(bean);
	}

	@Override
	public Integer dictionaryUpdate(DictionaryBean bean) {
		return mapper.dictionaryUpdate(bean);
	}

	@Override
	public Integer dictionaryDelete(Long id) {
		return mapper.dictionaryDelete(id);
	}

	@Override
	public DictionaryBean dictionarySelectOne(Long id) {
		return mapper.dictionarySelectOne(id);
	}

	@Override
	public List<Map<String, Object>> dictionarySelectMap(Map<String, Object> params) {
		return mapper.dictionarySelectMap(params);
	}
}
